﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace DinhTam
{
    public partial class Manage : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, System.EventArgs e)
        {
            UserControl usControl = new UserControl();
            string strUserControlName=null;
            strUserControlName = Request.QueryString["act"];
            if (strUserControlName==null)
            {
                Response.Redirect("index.aspx?act=trangchu");
                return;
            }
            else
            {
                strUserControlName = string.Format("{0}.ascx", strUserControlName);
                usControl=(UserControl)Page.LoadControl("Includes/"+strUserControlName);
                this.ID = "Manage1";
                this.Controls.Add(usControl);
            }

        }

    }
}